package com.woniu.fly.fairmall.admin.web;

import com.woniu.fly.fairmall.db.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/fairmall/admin")
public class TestController {

    @Resource
    private TestService testService;

    @GetMapping("/test")
    public Object test() {
        Map<String, Object> test = testService.test();
        return test;
    }
}
